import request from 'common/request.js'

/**
 * 群消息
 */
export const chatMessageList = async (data) => {
    const res = await request({
        url: 'board/chatMessageList',
        method: 'GET',
        loadingText: '消息加载中',
        data
    })
    return res
}

/**
 * 微信小程序注册
 */
export const wxAppletRegister = async (data) => {
    const res = await request({
        url: 'board/wxAppletRegister',
        method: 'POST',
        loadingText: '登录中',
        data
    })
    return res
}

/**
 * 微信登录
 */
export const wxLogin = async (data) => {
    const res = await request({
        url: 'board/wxLogin',
        method: 'POST',
        loadingText: '登录中',
        data
    })
    return res
}

/**
 * 主页信息
 */
export const userInfo = async () => {
    const res = await request({
        url: 'index/homeInfo',
        method: 'GET'
    })
    return res
}




